<template>
  <div>
    <el-menu :active="isActive" :default-active="isActive" mode="horizontal" router>
      <el-menu-item index="/">首页</el-menu-item>
      <el-menu-item index="/category/all">文章分类</el-menu-item>
      <el-menu-item index="/tag/all">标签</el-menu-item>
      <el-menu-item index="/message">留言板</el-menu-item>
      <el-menu-item index="/search">搜索</el-menu-item>
      <el-menu-item index="/timeLine">时间轴</el-menu-item>
      <a href="http://localhost:9528/login?redirect=%2Fdashboard">登录</a>
      <div>{{isActive}}</div>
    </el-menu>
  </div>

</template>


<script>
export default {
  name: "NavMenu",
  props:['isActive'],
  data:function() {
    return {
    };
}
,watch:{
    isActive(){

    }
  }
}
</script>

<style>
.el-menu-item-group__title{
  display:none;
}
</style>
